


function importExcel(obj,flag){
	loadDataExc(dsId,flag);
}



function initDataGrid(order){
	$('#IMP_MATA_DATALIST').datagrid({
		iconCls:'icon-save',
		height:260 ,
		width:525,
		striped: true,		
		collapsible:true,
		autoRowHeight: false,		
		sortOrder: 'desc',
		remoteSort: false,
		fixed:true,
		columns:[[
        {field:'H_ID',checkbox:true}, 
		{field:"H_ISBN",title:'书号',width:100},
		{field:"H_NAME",title:'商品名称',width:200}
          ]],
		singleSelect:true,
		onSelect:function(rowIndex,rowData){
			
		},	
		onDblClickRow: function(){
			H_IdFill();
		}
	});   
}

function H_IdFill(){
	var id = $("#IMP_MATA_DATALIST").datagrid("getSelected").H_ID;
	var currentRow=$("#IMP_EXC_DATALIST").datagrid("getSelected");
	var index=$("#IMP_EXC_DATALIST").datagrid('getRowIndex',currentRow);
	$("#IMP_EXC_DATALIST").datagrid('beginEdit',index);
	currentRow.H_ID_MATCH=id;
	currentRow.IS_PP=1;
	$("#IMP_EXC_DATALIST").datagrid('endEdit',index);
	$('#manage_ap').window('close');
}





